﻿using System.Windows;
using System.Windows.Shapes;
using Drawer.Common;

namespace Drawer.Shapes
{
    class FRectangle : BaseShape
    {
        public override Shape GetShape()
        {
            Rectangle newRectangle = new Rectangle();
            newRectangle.Width = Dimension.Width;
            newRectangle.Height = Dimension.Height;
            newRectangle.Margin = new Thickness(StartPoint.X, StartPoint.Y, 0, 0);
            newRectangle.Stroke = OutlineColor;
            newRectangle.Fill = FillColor;
            newRectangle.StrokeThickness = StrokeSize;

            return newRectangle;
        }
    }
}
